home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group98b.txt
/
000048_icon-group-sender _Mon Jun 1 16:29:35 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
2KB
Return-Path: <icon-group-sender>
Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
by baskerville.CS.Arizona.EDU (8.8.8/8.8.7) with SMTP id QAA08263
for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Mon, 1 Jun 1998 16:29:34 -0700 (MST)
Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
id AA02320; Mon, 1 Jun 1998 16:29:27 -0700
Date: Mon, 1 Jun 1998 17:11:58 -0500
Message-Id: <199806012211.RAA06897@segfault.cs.utsa.edu>
From: Clinton Jeffery <jeffery@segfault.cs.utsa.edu>
To: abrahams@acm.org
Cc: icon-group@optima.CS.Arizona.EDU
In-Reply-To: <9805300228.AA0191@valinet.com> (message from Paul Abrahams on
Fri, 29 May 98 22:28:40 -0400)
Subject: Re: Annoying things
Reply-To: jeffery@cs.utsa.edu
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
Content-Length: 1036
[Paul Abrahams wrote:]
Given the variances among operating systems, perhaps there ought to be a
convention that the first space-delimited item in each line produced by
open(dirname) is the filename.
This is not a bad suggestion. Certainly the format of the string should
follow conventions that preserve portability. Some operating systems
(Macintosh, and recent versions of Windows) allow spaces in filenames!
This does seem close to my earlier suggestion that reading a directory
should act as a generator of the filenames within the directory.
That's because my current Windows directory reading facility was inspired
directly by your suggestion. It was a good suggestion, Paul! It isn't
technically a generator, although you can use the generate operator (!)
to get a generator of filenames, as in:
f := open(dirname)
every filename := !f do ...
Clint Jeffery, jeffery@cs.utsa.edu
Division of Computer Science, The University of Texas at San Antonio
Research http://www.cs.utsa.edu/research/plss.html